export default function handle() {
    return async (error,ctx) => {
        const code = error.code || ctx.ERROR.ERRORCODE_SYSTEMERROR;
        const message = error.message || ctx.ERROR.ERRORMSG_SYSTEMERROR;
        const value = error.value || {};
        console.log(`errorHandle=${code}`);
        ctx.body = ctx.util.response(code,message,value);
    }
}